<div class="hd-20161108">
    <div class="hd-banner-bg">
    </div>
    <div class="hd-main-content">
        <div id="display1">
            <h2 class="title">
                <img class="title-img" src="./images/201611081.png">
                <span class="title-text">Xiaomi</span>
            </h2>
            <div class="hd-display-block w1100">
                <div class="display">
                    <div class="hd-product-list">
                        <ul class="lis1 lists-24 clearfloat">
                        </ul>
                    </div>
                </div>
            </div>
        </div>

        <div id="display2">
            <h2 class="title">
                <img class="title-img" src="./images/201611081.png">
                <span class="title-text">iPhone</span>
            </h2>
            <div class="hd-display-block w1100">
                <div class="display">
                    <div class="hd-product-list">
                        <ul class="lis1 lists-24 clearfloat">
                        </ul>
                    </div>
                </div>
            </div>
        </div>

        <div id="display3">
            <h2 class="title">
                <img class="title-img" src="./images/201611081.png">
                <span class="title-text" style="font-size: 30px;">Other Brands</span>
            </h2>
            <div class="hd-display-block w1100">
                <div class="display">
                    <div class="hd-product-list">
                        <ul class="lis1 lists-24 clearfloat">
                        </ul>
                        <div class="clear"></div>
                    </div>
                </div>
            </div>
        </div>
        <div id="display4">
            <h2 class="title">
                <img class="title-img" src="./images/201611081.png">
                <span class="title-text">Gadgets</span>
            </h2>
            <div class="hd-display-block w1100">
                <div class="display">
                    <div class="hd-product-list">
                        <ul class="lis1 lists-24 clearfloat">
                        </ul>
                    </div>
                </div>
            </div>
        </div>


        <div id="display5">
            <h2 class="title">
                <img class="title-img" src="./images/201611081.png">
                <span class="title-text" style="font-size: 27px;">Refurbished Moblie</span>
            </h2>
            <p class="hd-title-notice">All Refurbished Mobile have 1 month warranty. </p>
            <div class="hd-display-block w1100">
                <div class="display">
                    <div class="hd-product-list">
                        <ul class="lis1 lists-24 clearfloat">
                        </ul>
                        <p class="hd-more-btn">
                            <a href="#">View More &gt;&gt;</a>
                        </p>
                    </div>
                </div>
            </div>
        </div>


        <div class="hd-display-block w1100">
            <div class="panel-layout">
                <img src="./images/201611082.png">
                <ul>
                    <li>
                        <a href="#display1">Xiaomi</a>
                    </li>
                    <li>
                        <a href="#display2">iPhone</a>
                    </li>
                    <li>
                        <a href="#display3">Other Brands</a>
                    </li>
                    <li>
                        <a href="#display4">Gadgets</a>
                    </li>
                    <li style="margin-bottom: 0px;">
                        <a href="#display5">Refurbished Moblie</a>
                    </li>
                    <li style="background:none;">
                        <a href="#Top">
                            <img src="./images/201611083.png">
                        </a>
                    </li>
                </ul>
            </div>
        </div>

    </div>

</div>
<style>
    .hd-20161108{background: #7311a1;}
    .hd-banner-bg{background: url(./images/201611081.jpg)no-repeat center top;height: 800px;}
    .hd-main-content .title{background: #d4012a;text-align: center;height: 69px;position: relative;margin-bottom: 25px;}
    .hd-main-content .title-img{background: #7c0dae;margin-top: -12px;}
    .hd-main-content .title-text{position: absolute;top: -5px;left: 50%;width: 170px;margin-left: -85px;font-size: 35px;color: #fff100;line-height: 27px;}
    .review-wrapper{text-align: center;padding: 10px 5px 20px;background: #ff0000;}
    .review-wrapper .product-info{font-size: 15px;line-height: 15px;height: 30px;overflow: hidden;display: block;color: #ffff1a;}
    .hd-main-content{background: url(./images/201611082.jpg) repeat-y center top;}
    .hd-main-content .lis1{margin: 0px;padding: 25px 0px;}
    .hd-main-content .lis1 li{width: 201px;height: 265px;margin: 5px 3px;position: relative;-webkit-transition: all 0.3s ease;-moz-transition: all 0.3s ease;-ms-transition: all 0.3s ease;-o-transition: all 0.3s ease;transition: all 0.3s ease;display: inline-block;background: url(./images/201611084.png)no-repeat center top;}
    .hd-main-content .lis1 li:hover{transform: translateY(-6px);-webkit-transform: translateY(-6px);-o-transform: translateY(-6px);-ms-transform: translateY(-6px);-moz-transform: translateY(-6px);}
    .hd-link-img{display: block;height: 170px;}
    .discount-number2{position: absolute;height: 60px;width: 60px;font-size: 23px;color: #fff;font-weight: bold;top: 0px;right: 0px;line-height: 50px;background: url(./images/201611085.png)no-repeat;background-size: cover;-webkit-background-size: cover;-ms-background-size: cover;text-align: center;}
    .hd-main-content .lis1 li img{width: 90%;padding: 10px;}
    .hd-main-content .price-area{display: block;text-align: left;background: #ffde00;height: 45px;width: 95%;margin: -10px auto;position: relative;}
    .hd-main-content .old-price{font-size: 18px;text-decoration: line-through;color: #666;display: inline-block;text-align: right;width: 40%;box-sizing: border-box;padding-right: 8px;position: absolute;top: 13px;}
    .hd-main-content .current-price{font-size: 28px;font-weight: bold;color: #f20043;line-height: 45px;background: #fff;display: inline-block;width: 60%;height: 100%;box-sizing: border-box;border: 2px solid #ffde00;text-align: center;}
    .hd-btn-buy{background: #d20370;font-size: 24px;color: #fff;line-height: 45px;text-align: center;width: 100%;position: absolute;left: 0px;height: 100%;box-sizing: border-box;font-weight: bold;-webkit-transform: scale(0.01);-moz-transform: scale(0.01);-o-transform: scale(0.01);-ms-transform: scale(0.01);transform: scale(0.01);-webkit-transition: all .3s linear 0s;-moz-transition: all .3s linear 0s;-o-transition: all .3s linear 0s;-ms-transition: all .3s linear 0s;transition: all .3s linear 0s;visibility: hidden;}
    .hd-main-content .lis1 li:hover .hd-btn-buy{visibility: visible;-webkit-transform: scale(1);-moz-transform: scale(1);-o-transform: scale(1);-ms-transform: scale(1);transform: scale(1);}
    .hd-main-content .hd-product-list{padding-bottom: 60px;}
    .panel-layout{width: 170px;height: 410px;position: fixed;top: 0;margin-left: 1055px;-webkit-transform: scale(0.01);-moz-transform: scale(0.01);-o-transform: scale(0.01);-ms-transform: scale(0.01);transform: scale(0.01);-webkit-transition: all .6s linear 0s;-moz-transition: all .6s linear 0s;-o-transition: all .6s linear 0s;-ms-transition: all .6s linear 0s;transition: all .6s linear 0s;visibility: hidden;text-align: center;}
    .panel-layout.active{visibility: visible;-webkit-transform: scale(1);-moz-transform: scale(1);-o-transform: scale(1);-ms-transform: scale(1);transform: scale(1);}
    .panel-layout ul{position: absolute;left: 0px;width: 100%;top: 135px;}
    .panel-layout ul li{list-style: none;margin: 0px auto 10px;background: #ffff1a;}
    .panel-layout ul li a{display: block;height: 38px;width: 100%;color: #d4012a;text-align: center;font-size: 16px;line-height: 38px;}
    .panel-layout ul li.current a{color: #0076d6;}
    .hd-main-content .hd-title-notice{font-size: 25px;color: #fff100;text-align: center;margin-top: 55px;}
    .hd-main-content .hd-more-btn{text-align: center;}
    .hd-main-content .hd-more-btn a{background: #ffff1a;width: 150px;color: #d4012a;font-size: 16px;padding: 10px 15px;}
</style>

<script type="text/javascript">
    (function ($) {
        $(function () {
            var str2 = `<li>
                            <a class="hd-link-img" href="#"><img src="./images/2016040616.jpg"></a>
                             <div class="review-wrapper">
                              <a class="product-info" href="#">Blackview Ultra A6 Plus 2GB 16GB Dorado</a>
                            </div>
                            <a class="price-area" href="#">
                              <span class="current-price">$99.95</span>
                              <span class="old-price">$129.95</span>
                              <span class="hd-btn-buy">Buy now &gt;&gt;</span>
                            </a>
                             <span class="discount-number2">25%</span>
                          </li>`;


            var str2_24 = '';
            for (var i = 0; i < 24; i++) {
                str2_24 += str2;
            }
            $(".lists-24").append(str2_24);

            var sideNav = $(".panel-layout");
            $(window).on("scroll", function () {
                var sideNavShow = $(".hd-banner-bg").offset().top + $(".hd-banner-bg").outerHeight(true) - 200;
                var modTop = [];
                if ($(this).scrollTop() >= sideNavShow) {
                    sideNav.addClass("active");
                }
                else {
                    sideNav.removeClass("active");
                }

                for (var i = 0; i < $(".panel-layout ul li a").length - 1; i++) {
                    modTop[i] = $($(".panel-layout ul li a").eq(i).attr("href")).offset().top - 25;

                    if ($(window).scrollTop() >= modTop[i]) {
                        $(".panel-layout ul li").removeClass('current').eq(i).addClass('current');
                    };
                };
            });

            sideNav.find("li").find("a").on("click", function (e) {
                e.preventDefault();
                var aHash = this.hash;
                $("html,body").animate({
                    scrollTop: aHash == "#Top" ? 0 : $(aHash).offset().top - 20
                });
            });
        });
    })(jQuery); 
</script>